<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>1.数组的every</title>
  </head>
  <body>
    <script type="text/javascript" >
      let arr1 = [1,3,5,7,9]
      let arr2 = [
        {name:'张三',age:18},
        {name:'李四',age:19},
        {name:'王五',age:20},
        {name:'赵六',age:21},
      ]

      let result = arr1.every((item)=>{
        return item > 0
      })

      let result2 = arr2.every((item)=>{
        return item.age >= 18
      })

      console.log(result)
      console.log(result2)
    </script>
  </body>
</html>